<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: H:/nist_testsuite/include/BinaryMatrixRank.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_binary_matrix_rank_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">BinaryMatrixRank.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">* BinaryMatrixRank.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* Last edited: 21.07.2014</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* Author: David Noack</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;NistTest.h&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;boost\math\special_functions\gamma.hpp&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_binary_matrix_rank.html">   14</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_binary_matrix_rank.html">BinaryMatrixRank</a> : <span class="keyword">public</span> <a class="code" href="class_nist_test.html">NistTest</a></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;{</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        <a class="code" href="class_binary_matrix_rank.html#a81bb135d305fc3eff705c3f0606bdf6c">BinaryMatrixRank</a>(<span class="keywordtype">bool</span>* bitArray, <span class="keywordtype">int</span> bitArraySize);</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        <a class="code" href="class_binary_matrix_rank.html#a638c6a1b62403bb22b311446910f8295">~BinaryMatrixRank</a>();</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_binary_matrix_rank.html#aa7d9f319b8ec9aac738b5632c06462f1">   26</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_binary_matrix_rank.html#aa7d9f319b8ec9aac738b5632c06462f1">start</a>(){};</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="keywordtype">double</span> <a class="code" href="class_binary_matrix_rank.html#a0af022c23f98f06c942849d127d17722">execute</a>(<span class="keywordtype">int</span> size);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_binary_matrix_rank.html#a50eafd2e9e5ea96d077ecbf8fe142531">determineRank</a>();</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_binary_matrix_rank.html#ae348cd39a3635ec15a4cc839b2bc5ddb">fillMatrix</a>(<span class="keywordtype">int</span> matrixCount);</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_binary_matrix_rank.html#a4d709cc28a248779cce08e9b8bc4fade">performForwardOperations</a>();</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_binary_matrix_rank.html#a1ae83432161e88166c95350a473f98bc">performBackwardOperations</a>();</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_binary_matrix_rank.html#a11e031ca60055a50582c1e2f7de11abb">swap</a>(<span class="keywordtype">short</span> row1, <span class="keywordtype">short</span> row2);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_binary_matrix_rank.html#a6d1b7d01e110dc9490064746add45152">printMatrix</a>();</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="class_binary_matrix_rank.html#a826696e78ae9ef6e5abc728395ca8fc3">   54</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_binary_matrix_rank.html#a826696e78ae9ef6e5abc728395ca8fc3">xor</a>(<span class="keywordtype">bool</span> var1, <span class="keywordtype">bool</span> var2)</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        {</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;            <span class="keywordflow">if</span> (var1 != var2)</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        }</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="class_binary_matrix_rank.html#a0b8eb86e2990b2890a50942436e3562d">   63</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_binary_matrix_rank.html#a0b8eb86e2990b2890a50942436e3562d">matrixRows</a>; </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_binary_matrix_rank.html#ac59b21fcb74f82a34fe5cc76de025ffe">   65</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_binary_matrix_rank.html#ac59b21fcb74f82a34fe5cc76de025ffe">matrixColumns</a>; </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="class_binary_matrix_rank.html#a3a8e1261b76ad1513249dfbca99d927f">   67</a></span>&#160;        <span class="keywordtype">bool</span>** <a class="code" href="class_binary_matrix_rank.html#a3a8e1261b76ad1513249dfbca99d927f">matrix</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_binary_matrix_rank.html#a938158834af34dffa719bbe8e50aa7c9">   69</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_binary_matrix_rank.html#a938158834af34dffa719bbe8e50aa7c9">numberOfmatrices</a>;</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="class_binary_matrix_rank.html#a903f39a16acc0c434f70642275ec8b3f">   71</a></span>&#160;        <span class="keywordtype">double</span> <a class="code" href="class_binary_matrix_rank.html#a903f39a16acc0c434f70642275ec8b3f">chi_sqr</a>;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="class_binary_matrix_rank.html#a2a0ffcc260def0c8d659e3be7d86faa2">   74</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_binary_matrix_rank.html#a2a0ffcc260def0c8d659e3be7d86faa2">countFullRank</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="class_binary_matrix_rank.html#a4ef0ea379d86005f9cde4e305db84ca2">   76</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_binary_matrix_rank.html#a4ef0ea379d86005f9cde4e305db84ca2">countFullRank_minus1</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="class_binary_matrix_rank.html#afee980edb6687c53485e26a443ead74a">   78</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_binary_matrix_rank.html#afee980edb6687c53485e26a443ead74a">countOtherRanks</a>;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;};</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="ttc" id="class_binary_matrix_rank_html_a4d709cc28a248779cce08e9b8bc4fade"><div class="ttname"><a href="class_binary_matrix_rank.html#a4d709cc28a248779cce08e9b8bc4fade">BinaryMatrixRank::performForwardOperations</a></div><div class="ttdeci">void performForwardOperations()</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.cpp:83</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_afee980edb6687c53485e26a443ead74a"><div class="ttname"><a href="class_binary_matrix_rank.html#afee980edb6687c53485e26a443ead74a">BinaryMatrixRank::countOtherRanks</a></div><div class="ttdeci">int countOtherRanks</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.h:78</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a4ef0ea379d86005f9cde4e305db84ca2"><div class="ttname"><a href="class_binary_matrix_rank.html#a4ef0ea379d86005f9cde4e305db84ca2">BinaryMatrixRank::countFullRank_minus1</a></div><div class="ttdeci">int countFullRank_minus1</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.h:76</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a638c6a1b62403bb22b311446910f8295"><div class="ttname"><a href="class_binary_matrix_rank.html#a638c6a1b62403bb22b311446910f8295">BinaryMatrixRank::~BinaryMatrixRank</a></div><div class="ttdeci">~BinaryMatrixRank()</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a2a0ffcc260def0c8d659e3be7d86faa2"><div class="ttname"><a href="class_binary_matrix_rank.html#a2a0ffcc260def0c8d659e3be7d86faa2">BinaryMatrixRank::countFullRank</a></div><div class="ttdeci">int countFullRank</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.h:74</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_ac59b21fcb74f82a34fe5cc76de025ffe"><div class="ttname"><a href="class_binary_matrix_rank.html#ac59b21fcb74f82a34fe5cc76de025ffe">BinaryMatrixRank::matrixColumns</a></div><div class="ttdeci">int matrixColumns</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.h:65</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_aa7d9f319b8ec9aac738b5632c06462f1"><div class="ttname"><a href="class_binary_matrix_rank.html#aa7d9f319b8ec9aac738b5632c06462f1">BinaryMatrixRank::start</a></div><div class="ttdeci">void start()</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.h:26</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a826696e78ae9ef6e5abc728395ca8fc3"><div class="ttname"><a href="class_binary_matrix_rank.html#a826696e78ae9ef6e5abc728395ca8fc3">BinaryMatrixRank::xor</a></div><div class="ttdeci">bool xor(bool var1, bool var2)</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.h:54</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a3a8e1261b76ad1513249dfbca99d927f"><div class="ttname"><a href="class_binary_matrix_rank.html#a3a8e1261b76ad1513249dfbca99d927f">BinaryMatrixRank::matrix</a></div><div class="ttdeci">bool ** matrix</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.h:67</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a903f39a16acc0c434f70642275ec8b3f"><div class="ttname"><a href="class_binary_matrix_rank.html#a903f39a16acc0c434f70642275ec8b3f">BinaryMatrixRank::chi_sqr</a></div><div class="ttdeci">double chi_sqr</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.h:71</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a0af022c23f98f06c942849d127d17722"><div class="ttname"><a href="class_binary_matrix_rank.html#a0af022c23f98f06c942849d127d17722">BinaryMatrixRank::execute</a></div><div class="ttdeci">double execute(int size)</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.cpp:18</div></div>
<div class="ttc" id="class_nist_test_html"><div class="ttname"><a href="class_nist_test.html">NistTest</a></div><div class="ttdef"><b>Definition:</b> NistTest.h:11</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a1ae83432161e88166c95350a473f98bc"><div class="ttname"><a href="class_binary_matrix_rank.html#a1ae83432161e88166c95350a473f98bc">BinaryMatrixRank::performBackwardOperations</a></div><div class="ttdeci">void performBackwardOperations()</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.cpp:135</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a81bb135d305fc3eff705c3f0606bdf6c"><div class="ttname"><a href="class_binary_matrix_rank.html#a81bb135d305fc3eff705c3f0606bdf6c">BinaryMatrixRank::BinaryMatrixRank</a></div><div class="ttdeci">BinaryMatrixRank(bool *bitArray, int bitArraySize)</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.cpp:10</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a0b8eb86e2990b2890a50942436e3562d"><div class="ttname"><a href="class_binary_matrix_rank.html#a0b8eb86e2990b2890a50942436e3562d">BinaryMatrixRank::matrixRows</a></div><div class="ttdeci">int matrixRows</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.h:63</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_ae348cd39a3635ec15a4cc839b2bc5ddb"><div class="ttname"><a href="class_binary_matrix_rank.html#ae348cd39a3635ec15a4cc839b2bc5ddb">BinaryMatrixRank::fillMatrix</a></div><div class="ttdeci">void fillMatrix(int matrixCount)</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.cpp:68</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a6d1b7d01e110dc9490064746add45152"><div class="ttname"><a href="class_binary_matrix_rank.html#a6d1b7d01e110dc9490064746add45152">BinaryMatrixRank::printMatrix</a></div><div class="ttdeci">void printMatrix()</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.cpp:199</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a11e031ca60055a50582c1e2f7de11abb"><div class="ttname"><a href="class_binary_matrix_rank.html#a11e031ca60055a50582c1e2f7de11abb">BinaryMatrixRank::swap</a></div><div class="ttdeci">void swap(short row1, short row2)</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.cpp:186</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a50eafd2e9e5ea96d077ecbf8fe142531"><div class="ttname"><a href="class_binary_matrix_rank.html#a50eafd2e9e5ea96d077ecbf8fe142531">BinaryMatrixRank::determineRank</a></div><div class="ttdeci">void determineRank()</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.cpp:216</div></div>
<div class="ttc" id="class_binary_matrix_rank_html"><div class="ttname"><a href="class_binary_matrix_rank.html">BinaryMatrixRank</a></div><div class="ttdoc">Implementation of the Nist BinaryMatrixRank-test. </div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.h:14</div></div>
<div class="ttc" id="class_binary_matrix_rank_html_a938158834af34dffa719bbe8e50aa7c9"><div class="ttname"><a href="class_binary_matrix_rank.html#a938158834af34dffa719bbe8e50aa7c9">BinaryMatrixRank::numberOfmatrices</a></div><div class="ttdeci">int numberOfmatrices</div><div class="ttdef"><b>Definition:</b> BinaryMatrixRank.h:69</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_84e7a5db4faa3bb3efa0834f14a17625.html">H:</a></li><li class="navelem"><a class="el" href="dir_5bd6e5762e2d12a994937fef8bd8081a.html">nist_testsuite</a></li><li class="navelem"><a class="el" href="dir_9332151be99f7e112eb0a138608eff3e.html">include</a></li><li class="navelem"><b>BinaryMatrixRank.h</b></li>
    <li class="footer">Generated on Sun Aug 31 2014 18:02:14 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
